package com.emergency.examine.domain;

import com.emergency.base.domain.BaseEntity;
import com.emergency.examine.common.ExamOption;

import javax.persistence.*;

//选择题选项
@Entity
@Table(name = "ex_option")
public class Option extends BaseEntity {

    @OneToOne(targetEntity = Question.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "question_id", referencedColumnName = "id")
    private Question question; //题目id 题目表question

    private ExamOption examOption;//题目选项 A,B,C,D

    private String des;//选项描述

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public ExamOption getExamOption() {
        return examOption;
    }

    public void setExamOption(ExamOption examOption) {
        this.examOption = examOption;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }
}
